package com.eshop.modules.product.domain;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

@TableName("store_product_attr_result")
public class StoreProductAttrResult implements Serializable
{
    @TableId
    private Long id;
    private Long productId;
    private String result;
    private Date changeTime;
    
    public void copy(final StoreProductAttrResult source) {
        BeanUtil.copyProperties((Object)source, (Object)this, CopyOptions.create().setIgnoreNullValue(true));
    }
    
    public Long getId() {
        return this.id;
    }
    
    public Long getProductId() {
        return this.productId;
    }
    
    public String getResult() {
        return this.result;
    }
    
    public Date getChangeTime() {
        return this.changeTime;
    }
    
    public void setId(final Long id) {
        this.id = id;
    }
    
    public void setProductId(final Long productId) {
        this.productId = productId;
    }
    
    public void setResult(final String result) {
        this.result = result;
    }
    
    public void setChangeTime(final Date changeTime) {
        this.changeTime = changeTime;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof StoreProductAttrResult)) {
            return false;
        }
        final StoreProductAttrResult other = (StoreProductAttrResult)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        Label_0065: {
            if (this$id == null) {
                if (other$id == null) {
                    break Label_0065;
                }
            }
            else if (this$id.equals(other$id)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$productId = this.getProductId();
        final Object other$productId = other.getProductId();
        Label_0102: {
            if (this$productId == null) {
                if (other$productId == null) {
                    break Label_0102;
                }
            }
            else if (this$productId.equals(other$productId)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$result = this.getResult();
        final Object other$result = other.getResult();
        Label_0139: {
            if (this$result == null) {
                if (other$result == null) {
                    break Label_0139;
                }
            }
            else if (this$result.equals(other$result)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$changeTime = this.getChangeTime();
        final Object other$changeTime = other.getChangeTime();
        if (this$changeTime == null) {
            if (other$changeTime == null) {
                return true;
            }
        }
        else if (this$changeTime.equals(other$changeTime)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof StoreProductAttrResult;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        final Object $productId = this.getProductId();
        result = result * 59 + (($productId == null) ? 43 : $productId.hashCode());
        final Object $result = this.getResult();
        result = result * 59 + (($result == null) ? 43 : $result.hashCode());
        final Object $changeTime = this.getChangeTime();
        result = result * 59 + (($changeTime == null) ? 43 : $changeTime.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "StoreProductAttrResult(id=" + this.getId() + ", productId=" + this.getProductId() + ", result=" + this.getResult() + ", changeTime=" + this.getChangeTime() + ")";
    }
}
